/**
 * 用于生成配置对象,将会移除配置中的undefined
 * @param data
 * @returns {*}
 */
Object.options = function (data) {
  for (let o of Object.keys(data)) {
    if (data[o] === undefined) {
      delete data[o];
    }
  }
  return data;
};
